console.log(history.length,history.state);
let state={page_id:3,user_id:5,name:'test'};
let title='inserted';
let url='index.html';
history.pushState(state,title,url);
console.log(history.state);
history.replaceState(state,'replaced',url);
console.log(history.state);
history.back();
console.log(history.scrollRestoration);
history.scrollRestoration='manual';
console.log(history.scrollRestoration);
history.scrollRestoration='auto';
console.log(history.scrollRestoration);
history.forward();
history.go(1); //forward
history.go(-1);//back
history.go();//refresh
